<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>照片识别</title>
    <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
    <script>
        function register(){
            var formData = new FormData($('#register-form')[0]);
            $.ajax({
                url: "/arc-api/upload-photo",
                type: "POST",
                dataType: "text",
                data: formData,
                processData: false,			//对数据不做处理
                cache:false,      				//上传文件不需要缓存
                contentType: false,
                mimeType:"multipart/form-data",
                success: function (result) {
                    alert(result);
                },
                error : function() {
                    alert("异常！");
                }
            });
        }
    </script>
</head>
<body>
<div class="main-content">
上古大陆
</div>
</body>
</html>